package com.redijedi.tapestry5.components;

import org.apache.tapestry.annotations.SetupRender;

/**
 * @author torr
 * 
 */
public class WizardGroup extends TabGroup {

	private String _currentPanel;

	/**
	 * @return the _currentPanel
	 */
	public String getCurrentPanel() {
		return _currentPanel;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.redijedi.web.components.TabGroup#get_activePanel()
	 */
	public String getNextStep() {
		return super.getActivePanel();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.redijedi.web.components.TabGroup#set_activePanel(java.lang.String)
	 */
	public void setNextStep(String panel) {
		super.setActivePanel(panel);
	}

	@SetupRender
	void setupComponent() {
		_currentPanel = getActivePanel();
	}

}
